/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans.cargas.impl;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import net.easoftware.code.beans.cargas.DataFilter;
import net.easoftware.code.beans.cargas.OrdenCA;
import net.easoftware.code.beans.cargas.threading.CargasFilteringThread;
import net.easoftware.code.beans.cargas.threading.Result;
import net.easoftware.code.beans.facade.LineaNegocio;
import net.easoftware.code.beans.facade.RangoEmpresaFc;
import net.easoftware.code.error.EaError;
import org.apache.commons.collections.map.LinkedMap;

/**
 *
 * @author eliu
 */
public class OrdenCAFilter implements DataFilter {

    private static List<RangoEmpresaFc> rangos = new LinkedList<RangoEmpresaFc>();
    private static Map<String, LineaNegocio> lineas = new LinkedMap();

    @Override
    public Result proccesBean(Object bean, CargasFilteringThread parent) throws EaError {
        OrdenCA orden = (OrdenCA) bean;
        Result r = new Result(false, false);
        /* if (orden.getCompania() == null || orden.getSegmento() == null) {
         r.setContieneLn(false);
         r.setContieneUn(false);
         r.setCurrentBean(null);

         return r;
         }*/
        r.setCurrentBean(bean);


        return r;
    }
}
